package com.logica.mdm.webservices.messages;

import java.io.Serializable;

import com.logica.mdm.webservices.messages.beans.PartyWithAddressAndRelBean;

/**
 * Response Class for the search by MDM Id WebService.
 */
public class SearchPartyByMdmIdResponse implements Serializable {
	private static final long serialVersionUID = 1L;

	/** Indicate weather or not an error occured. */
	private boolean errorOccured;

	/** Message. */
	private String message;
	
	/** The corresponding Party. */
	private PartyWithAddressAndRelBean partyResult;


	/**
	 * Default Constructor.
	 */
	public SearchPartyByMdmIdResponse() {
		// Empty constructor
	}


	/**
	 * @return the errorOccured
	 */
	public boolean isErrorOccured() {
		return errorOccured;
	}

	/**
	 * @param errorOccured the errorOccured to set
	 */
	public void setErrorOccured(boolean errorOccured) {
		this.errorOccured = errorOccured;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the partyResult
	 */
	public PartyWithAddressAndRelBean getPartyResult() {
		return partyResult;
	}

	/**
	 * @param partyResult the partyResult to set
	 */
	public void setPartyResult(PartyWithAddressAndRelBean partyResult) {
		this.partyResult = partyResult;
	}

}
